<%@page import = "com.situ.web.servlet.Teacher"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<%
      Teacher teacher = (Teacher)request.getAttribute("teacher");
%>
  <form action="<%=request.getContextPath()%>/teacher?method=updateTeacher" method="post">
  <!-- 隐藏标签 -->
		<input type="hidden" name="id" value="<%=teacher.getId()%>" />
		名字：<input type="text" name="name" value="<%=teacher.getName()%>"/><br/>
		年龄：<input type="text" name="age" value="<%=teacher.getAge()%>"/><br/>
		薪水：<input type="text" name="salary" value="<%=teacher.getSalary()%>"/><br/>
		<input type="submit" value="修改"/>
		</form>


</body>
</html>